home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / c / bc_pas_2.zip / MVSOUND.H < prev    next >
Text File  |  1992-06-27  |  2KB  |  92 lines

  1. /*$Author:   DCODY  $*/
  2. /*$Date:   27 Jun 1992 19:28:42  $*/
  3. /*$Header:   W:/sccs/inc/mvsound.h_v   1.2   27 Jun 1992 19:28:42   DCODY  $*/
  4. /*$Log:   W:/sccs/inc/mvsound.h_v  $
  5.  * 
  6.  *    Rev 1.2   27 Jun 1992 19:28:42   DCODY
  7.  * pcminfo proto type change
  8.  * 
  9.  *    Rev 1.1   25 Jun 1992 23:25:10   DCODY
  10.  * flushed the trash prototypes
  11.  * 
  12.  *    Rev 1.0   15 Jun 1992 09:58:44   BCRANE
  13.  * Initial revision.
  14. */
  15. /*$Logfile:   W:/sccs/inc/mvsound.h_v  $*/
  16. /*$Modtimes$*/
  17. /*$Revision:   1.2  $*/
  18. /*$Workfile:   mvsound.h  $*/
  19.  
  20.     /*\
  21.     |*|----====< MVSOUND.H >====----
  22.     |*|
  23.     |*| This header file declares the prototypes for the library MVxLIB
  24.     |*|
  25.     |*| Copyright (c) 1991, Media Vision, Inc.    All Rights Reserved.
  26.     |*|
  27.     \*/
  28.  
  29.  
  30.     void far *DMABuffer ( char far *, int, int );
  31.  
  32.         /* Passes in a pointer and length to the buffer.            */
  33.         /* Also flushes the buffer. Returns 0 or true DMA buffer ptr.   */
  34.  
  35.         int EnablePCMPlay ();
  36.  
  37.         /* Sets up the PCM hardware for polled output            */
  38.  
  39.     int EnablePCMRecord ();
  40.  
  41.         /* Sets up the PCM hardware for polled input            */
  42.  
  43.     char far *FindDMABuffer ( char huge *, int );
  44.  
  45.         /* Takes a memory address & return the next 64k boundary        */
  46.  
  47.     int InitPCM ();
  48.  
  49.         /* Initializes the PCM code.                    */
  50.  
  51.         int PausePCM ( );
  52.  
  53.         /* Pauses the PCM input or output                    */
  54.  
  55.     int PCMInfo ( long ,int, int, int );
  56.  
  57.         /* Sets up the transfer rate & stereo/mono                */
  58.  
  59.     int PCMPlay ();
  60.  
  61.         /* Starts the DMA feeding the DAC                    */
  62.  
  63.     int PCMRecord ();
  64.  
  65.         /* Starts the DMA reading the ADC                    */
  66.  
  67.     void RemovePCM ();
  68.  
  69.         /* kills the PCM code.                        */
  70.  
  71.     void ResumePCM ();
  72.  
  73.         /* restarts the PCM input or output                 */
  74.  
  75.     int SelectDMA ( int );
  76.  
  77.         /* Selects the DMA channel 1, or 3                    */
  78.  
  79.     int SelectIRQ ( int );
  80.  
  81.         /* Selects the IRQ line for DMA control                */
  82.         /* This routine outputs a new setting for a volume channel.     */
  83.  
  84.     void UserFunc (long(far*)());
  85.  
  86.         /* Call back routine when Half way buffer is full/empty.        */
  87.  
  88.     /*\
  89.     |*| end of MVSOUND.H
  90.     \*/
  91.  
  92.